<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="http://apps.bdimg.com/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="__PUBLIC__/Member/weixin_dg114/patch/localResizeIMG.js" type="text/javascript"></script>
<script src="__PUBLIC__/Member/weixin_dg114/patch/mobileBUGFix.mini.js" type="text/javascript"></script>
<title>上传图片</title>
</head>

<body >
 
   <input type="file" style="width:100%; " onchange="$(window.parent.document).find('#status_').html('正在压缩图片');" id="upimg" />
  
<form action="{:U('Index/upload_Img')}" enctype="multipart/form-data" method="post" id="up_img"> 
   <input type="hidden" name="png" id="png" value="">
	<input type="hidden" name="id" value="{$id}" />
   
</form>  
 	<script type="text/javascript">
         $('input:file').localResizeIMG({
             width: 600,
             quality: 50,
             success: function (result) { 
             var img = new Image();
             img.src = result.base64;
$('#png').val(img.src);
             //$('body').append(img);
			 
		     $(window.parent.document).find('#status_').html('正在上传');
			 
			 $("#up_img").submit(); 
             console.log(result);
			
			
             }
         });
		 
		 
	
	</script>








</body>
</html>
